home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 6984 / 6984.xpi / chrome / lazarus.jar / content / password-reset.js < prev    next >
Text File  |  2009-11-24  |  738b  |  25 lines

  1.  
  2.  
  3. Lazarus.db = Lazarus.getBrowser().Lazarus.db;
  4. Lazarus.Crypto = Lazarus.getBrowser().Lazarus.Crypto;
  5.  
  6. /**
  7. */
  8. function onAccept(){
  9.     //okey dokey, lets do it
  10.     if (Lazarus.getBrowser().Lazarus.enterMasterPassword()){  
  11.         //better tell the user that this might take a while
  12.         document.getElementById('resetting-password-progress').style.visibility = "visible";
  13.         document.getElementById('resetting-password-text').style.visibility = "visible";
  14.         Lazarus.getBrowser().Lazarus.generateEncryptionKeys();
  15.         alert(strings['password-reset']);
  16.         //and we're done
  17.         return true;
  18.     }
  19.     else {
  20.         alert(strings['password-not-entered']);
  21.         return false;
  22.     }
  23. }
  24.